package alp.starcode.nudtportal.framework.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * user_config(用户配置表)
 * </p>
 *
 * @author xwx
 * @since 2023-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_config")
@ApiModel(value = "UserConfig对象", description = "user_config(用户配置表)")
public class UserConfig extends Model<UserConfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户流水号")
    @TableId("user_config_id")
    private String userConfigId;

    @ApiModelProperty(value = "用户流水号")
    @TableField("user_id")
    private String userId;

    @TableField("config_item")
    private String configItem;

    @TableField("config_value")
    private String configValue;

    @ApiModelProperty(value = "数据来源:系统生成、用户配置")
    @TableField("data_source")
    private String dataSource;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private Long updateTime;


    @Override
    protected Serializable pkVal() {
        return this.userConfigId;
    }

}
